package com.zy.oop1118;

/**
 * @Author GongXL
 * @Description TODO
 * @dATE 2021/11/18 14:41
 **/
public class Something {
    public void addOne(final Other o) {
        o.i++;
    }
    public static void main(String[] args) {
        Other o = new Other();
        new Something().addOne(o);
        System.out.println(o.i);
    }


}
